#ifndef DIALOGTEMPLATE_H
#define DIALOGTEMPLATE_H

#include <QDialog>
#include <QMouseEvent>
#include <QPoint>
namespace Ui {
class DialogTemplate;
}

class DialogTemplate : public QDialog
{
    Q_OBJECT

public:
    explicit DialogTemplate(QWidget *parent = nullptr);
    DialogTemplate(QWidget *parent,const QString &title) ;
    ~DialogTemplate();

private:
    Ui::DialogTemplate *ui;

private:
    QPoint last;
    QPoint c_press;
protected:
    void mousePressEvent(QMouseEvent *e);
    void mouseMoveEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);
private slots:
    void on_btn_close_clicked();
    void on_lb_website_linkActivated(const QString &link);
};

#endif // DIALOGTEMPLATE_H
